import java.io.IOException;

public class THff extends Thread{
    @Override
    public void run() {
        String command = "ffmpeg -framerate 10 -i ./as/screen_%d.png -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4";
        Runtime runtime = Runtime.getRuntime();
        Process process = null;
        try {
            process = runtime.exec(command);
        } catch (IOException e) {
            e.printStackTrace();
        }
        try {
            int exitCode = process.waitFor();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
